Structures and Pointers
Access to data
The first attempt to access the fields
of the structure
John through pJohn can be:
n(*pJohn).StudentID;
n
An alternative way:
npJohn->StudentID;
struct
student{
char name[30];
int
StudentID;
} John, *pJohn;
INITIALISATION:
pJohn = &John;
